#!/bin/sh
set -e
# Automatically added by dh_installinit

do_purge(){
    if [ -x "/etc/init.d/epg" ]; then
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
            invoke-rc.d epg stop >/dev/null || exit $?
        else
            /etc/init.d/epg stop >/dev/null || exit $?
        fi
    fi
}

case "$1" in
    remove|purge)
    do_purge >&2
    ;;
    failed-upgrade|upgrade|deconfigure)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac
# End automatically added section
